package com.sam;

import java.io.Serializable;

//import org.opencv.core.Mat;

public class DataStream implements Serializable {
	private static final long serialVersionUID = 1L;
	String message;
	byte[] img;
	//Mat data;
	String[] data;

	public DataStream() {

	}
	
	public String[] getData(){
		return data;
	}

	public DataStream(String name, byte[] img,String[] data){//,Mat data) {
		this.message= name;
		this.img = img;
		if(data!=null)
			this.data= new String[data.length];
		this.data=data;
		//this.data = data;
	}

	public void setmessage(String name) {
		this.message= name;
	}

	public void setimg(byte[] img) {
		this.img = img;
	}

	public byte[] getimg() {
		return img;
	}

	public String getmessage() {
		return message;
	}

	//public Mat getMat() {
	//	return data;
	//}

	//public void setMat(Mat dat) {
	//	data = dat;
	//}

}
